package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.PictureShare;
import cn.wolfcode.trip.base.domain.ShowBean;
import cn.wolfcode.trip.base.domain.User;

import java.util.List;

public interface PictureShareMapper {
    int deleteByPrimaryKey(Long id);

    PictureShare selectByPrimaryKey(Long id);

    List<PictureShare> selectAll();

    int updateByPrimaryKey(PictureShare record);

    /**
     * 插入一条图片分享记录
     *
     * @param record 分享数据
     * @return 记录的id
     */
    int insert(PictureShare record);

    /**
     * 根据用户集合 查询ShowBean
     *
     * @param followList 用户集合
     * @return showBean集合
     */
    List<ShowBean> selectPictureShareByUserIds(List<User> followList);
}